//
//  leftCell.m
//  ILiangCang
//
//  Created by ZX on 16-4-19.
//  Copyright (c) 2016年 CRQ. All rights reserved.
//

#import "leftCell.h"
#import "Masonry.h"

@implementation leftCell
-(instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    
    if (self)
    {
        //定义CELL单元格内容
        _coverImage = [[UIImageView alloc]init];
        _coverImage.backgroundColor = [UIColor clearColor];
        [self addSubview:_coverImage];
        [_coverImage mas_makeConstraints:^(MASConstraintMaker *make) {
            make.top.left.bottom.right.offset(0);
        }];
        _shadowImage = [[UIImageView alloc]init];
        _shadowImage.backgroundColor = [UIColor blackColor];
        _shadowImage.alpha = 0.3;
        [self addSubview:_shadowImage];
        [_shadowImage mas_makeConstraints:^(MASConstraintMaker *make) {
            make.top.left.bottom.right.offset(0);
        }];
        _title = [[UILabel alloc]init];
        _title.backgroundColor = [UIColor clearColor];
        _title.font = [UIFont systemFontOfSize:14];
        //        _titleLabel.text = @"wakakakkakakakak";
        _title.textColor = [UIColor whiteColor];
        [self addSubview:_title];
        [_title mas_makeConstraints:^(MASConstraintMaker *make) {
            make.centerX.mas_equalTo(self.mas_centerX);
            make.centerY.mas_equalTo(self.mas_centerY);
        }];
        
        
    }
    
    return self;
}

@end
